// history模式
import {
  createRouter,
  createWebHashHistory,
  createWebHistory
} from "vue-router";

// import App from ''

// import Home from '../view/Home/Home.vue'
import Home from "../view/Home/Home.vue";
import Rune from "@/view/Rune/Rune.vue";

const routes = [
  // 路由的默认路径
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/home",
    component: Home,
  },
  {
    path: "/rune",
    component: Rune,
  },
];

// 创建路由对象
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
export default router;
